home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7453 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  789 b 

  1. Path: inforamp.net!ts18-03
  2. From: rmorin@inforamp.net (Randy Charles Morin)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: for (int i(1); ...)
  5. Date: Fri, 23 Feb 96 11:34:43 GMT
  6. Organization: MiddleWorld SoftWare
  7. Message-ID: <4gk8ee$9qp@sam.inforamp.net>
  8. References: <4gg2j6$93g@darkstar.UCSC.EDU>
  9. NNTP-Posting-Host: ts18-03.tor.inforamp.net
  10. X-Newsreader: News Xpress Version 1.0 Beta #4
  11.  
  12. In article <4gg2j6$93g@darkstar.UCSC.EDU>,
  13.    ray@cse.ucsc.edu (Ray Swartz) wrote:
  14. >Should 
  15. >for (int i(1);...)
  16. >even be used?
  17. >
  18. >Ray
  19.  
  20. Nothing wrong with i(1), but it is conventional to use i=0.  If your code went 
  21. to somebody who has no idea what i(1) meant, then we have a problem.  You just 
  22. wasted one hour of his time finding out.  I would stick to i=0 unless you 
  23. really needed to do otherwise.
  24.  
  25. Agrivar
  26.